<%@ page language="java"
	import="java.util.*,cn.ainit.sys.utils.DateTimeStr"
	pageEncoding="utf-8"%>
<%@page import="java.io.PrintWriter"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head id="Head1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>爱你特综合决策分析软件</title>
		<link rel="stylesheet" type="text/css"	href="../js/themes/default/easyui.css" />
		<link rel="stylesheet" type="text/css" href="../js/themes/icon.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/pages/css/default.css"	type="text/css"></link>
		<script type="text/javascript"	src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" 	src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
		<script type="text/javascript"	src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/formatter.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/commonFmat.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/pks.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/groupname.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/f1f2.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/ainit-index.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/js/comsetting.js'> </script>
		<script type="text/javascript"	src='${pageContext.request.contextPath}/model/mytask/myTask.js'> </script>
		<style type="text/css">
			div ul li {
				list-style: none;
				float: left;
				padding-right: 10px;
			}
		</style>
<script type="text/javascript">  
//处理键盘事件 禁止后退键（Backspace）密码或单行、多行文本框除外  
function banBackSpace(e) {
    var ev = e || window.event; //获取event对象     
    var obj = ev.target || ev.srcElement; //获取事件源     
    var t = obj.type || obj.getAttribute('type'); //获取事件源类型    
    //获取作为判断条件的事件类型  
    var vReadOnly = obj.getAttribute('readonly');
    var vEnabled = obj.getAttribute('enabled');
    //处理null值情况  
    vReadOnly = (vReadOnly == null) ? false: vReadOnly;
    vEnabled = (vEnabled == null) ? true: vEnabled;
    //当敲Backspace键时，事件源类型为密码或单行、多行文本的，  
    //并且readonly属性为true或enabled属性为false的，则退格键失效  
    var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea") && (vReadOnly == true || vEnabled != true)) ? true: false;
    //当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效  
    var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea") ? true: false;
    //判断  
    if (flag2) {
        return false;
    }
    if (flag1) {
        return false;
    }
}  
</script>
<script type="text/javascript">  
//禁止后退键 作用于Firefox、Opera  
document.onkeypress=banBackSpace;  
//禁止后退键  作用于IE、Chrome  
document.onkeydown=banBackSpace;  
</script>
		
<script type="text/javascript">

	var $name = '';
     var $uid = '';
     var $depid = '';
     var $staid = '';
     
		function loadMenu(id){
			$('#tabs').tabs('select','菜单');
			$.ajax({
				type:'post',
				url:'../menu/getMenuMap',
				data:{'sid':id},
				success:function(menumap){
					_menulist=menumap;
					InitLeftMenu();
				}
			})
		}
		function logout(){   //退出
		$.messager.defaults = { ok: "确认", cancel: "取消" };
		$.messager.confirm('提示','确认退出吗',function(r){   
      if (r){ 
         $.ajax({
				type:'post',
				url:'${pageContext.request.contextPath}/menu/logout',
				success:function(){
					location.href= "<%=request.getContextPath()%>/pages/login.jsp";
				}
			})  
      }   
  });  
			
		}
		
				
        $(function() {
        	$('#manage_ap').window({
        		title:'个人信息',
        		width:360,
        	    height:200
        	});
        	
        	$('#manage_app').load(
        			_index_path+'pages/modifyPwd/updatepwd.jsp',
        			{},
        			function(){
        			}
        	);
        	$('#manage_ap').window('close');
            $("#updatePwd").click(function (){
                });

            $("#sb").click(function (){
                 console.log(1);
                });
        });



        function addGTabByids(){
            var jq = top.jQuery;
            $("#pwd").val('');
            $("#pwd1").val('');
            $("#odlpwd").val('');
            $('#manage_ap').window('open');
        }
        
        function downloadURL(){
        	window.open('${pageContext.request.contextPath}/pages/publish.url.xls','下载快捷方式');
        }
		
	</script>
	<script type="text/javascript">
//3秒钟循环检测登录状态
window.onload=function(){
setTimeout('badlog()',3000);
}
function badlog(){
  
           $.ajax( {
              type : 'post',
              url : '${pageContext.request.contextPath}/menu/badlog' ,
              success : function(data) {
              setTimeout('badlog()',3000);
              },
              error : function(e) {
                     alert("与服务器连接异常，请检查您的网络！");
              }
       });

    }


</script>
	

	</head>
	<body class="easyui-layout" style="overflow-y: hidden" scroll="no"   >
		<noscript>
			<div
				style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; background: white; text-align: center; ">
				<img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
			</div>
		</noscript>
		
		
		<div id='loadDZdiv' style='background-color:white;z-index:99999 !important; position:absolute; filter:alpha(opacity=50);opacity: 0.6;'  align="center" >
		  <img id="planimg" src="${pageContext.request.contextPath}/model/images/08.gif" />
		  <br />
		  <span> <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  努力加载中,请稍候...</strong></span>
		</div>
		
		<div region="north" style="overflow:hidden;height: 46px; !important; background-image: url('${pageContext.request.contextPath}/pages/images/banner.jpg'); ">
			<div style="float: left; text-align: center;margin-top:-3px;" align="center">
				<!-- LOGO -->
				<img src="${pageContext.request.contextPath}/pages/images/byf_logo.png"" style="height:49px;width:387px;" />
			</div>
			<div style="width: 250px; text-align: center; float: right;" align="center">
				<table>
				<tr >
				 <td colspan="2">
				    <span class="top_fresh"><%=DateTimeStr.formatDataWeek(new Date())%> &nbsp; 
					<a href='javascript:void(0);' onclick='downloadURL()'>
						<font color='white' style="font-weight: bold;">下载快捷方式</font>
					</a>
					</td>
				</span>
				</tr>
				<tr>
				  <td  valign="top">
			    	<font color='white' style="font-weight: bold;font-size: 16px ; margin: 0px;padding: 0px">
						${sessionScope.time}  &nbsp;<a href="javaScript: void(0)" id="info" onclick="addGTabByids('个人信息','fun_id','icon')" style="font-size: 16px"> ${sessionScope.loginName} </a></font> 
				  </td>
				  <td>
				  <span>
				  <img border="0"
						style="cursor: pointer;"
						id="reload"
						src="${pageContext.request.contextPath}/pages/images/refresh.gif.png"
						width="22px" height="22px" alt="刷新" onclick="RlzInit()" title="刷新" />&nbsp;&nbsp;&nbsp; <img border="0"
						style="cursor: pointer;"
						src="${pageContext.request.contextPath}/pages/images/logout.gif.png"
						width="22px" height="22px" alt="退出" title="退出" onclick="logout()" />
				</span>
				  </td>
				</tr>
				
				
			</table>
				
				
			</div>
		</div>
		<div region="west" hide="true" title="导航菜单"
			style="overflow-x: hidden; width: 170px;" id="west" >
			<div id="lm">
				<c:forEach items="${requestScope.menus}" var="lm">
					<li>
						<a title="${lm.MENU_TITLE}" href="javascript:void(0);"  id="${lm.MENU_ID}"	onclick="menuOnc(this,'${pageContext.request.contextPath}','${pageContext.request.contextPath}${lm.MENU_URL}');">
							<div id="img">
								<img width="25px" height="25px" border="0" src='${lm.LARGE_ICON}' alt="" />
							</div>
							<div id="name">${lm.MENU_NAME}</div> </a>
						<div class="mbg_b">
							&nbsp;
						</div>
					</li>
				</c:forEach>
			</div>
		</div>
		<div id="mainPanle" onResize="alert('dd');" region="center" style="background: #eee; overflow: hidden" >
			<div id="tabs"  class="easyui-tabs" fit="true"  border="false"
				style="overflow: hidden; ">
				<div title="欢迎使用" style="overflow: hidden; color: red;">
					<iframe scrolling="auto" frameborder="0"
						src="../report/report_index.jsp"
						style="width: 100%; height: 100%; min-width: 1248px;"></iframe>
				</div>
			</div>
		</div>
		
		<div id="mm" class="easyui-menu" style="width: 150px;">
			<div id="mm-tabupdate">
				刷新
			</div>
			<div class="menu-sep"></div>
			<div id="mm-tabclose">
				关闭
			</div>
			<div id="mm-tabcloseall">
				全部关闭
			</div>
			<div id="mm-tabcloseother">
				除此之外全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-tabcloseright">
				当前页右侧全部关闭
			</div>
			<div id="mm-tabcloseleft">
				当前页左侧全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-exit">
				退出
			</div>
		</div>
		<div id='manage_ap' type="hidden" >
		<div id='manage_app' align="center" >
	   </div></div>
	</body>


	<style type="text/css">
/*------纯DIV+CSS左侧导航菜单--------*/
#lm {
	border: solid 1px #CCCCCC;
	width: 100%;
	float: left;
	font-size: 16px;
	overflow: hidden;
}

.mbg_b {
	height: 2px;
	background-image: url("../pages/images/mico/mbg_b.png");
}

#lm li {
	list-style: none;
	width: 100%;
	float: left;
}

#lm li #img {
	vertical-align: middle;
	padding-left: 2px;
	text-align: right;
	float: left;
	padding-top: 10px;
}

#lm li #name {
	font-size: 16px;
	padding-top: 5px;
	vertical-align: middle;
	padding-left: 1px;
	text-align: right;
	float: left;
}

#lm li a {
	padding: 8px 20px;
	line-height: 250%;
	background-image: url("../pages/images/mico/mbg.png");
	/*-----溢出文字用省略号点代替---*/
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	/*---------------------------*/
	display: block;
	/* border-bottom: solid 1px #FFFFFF;*/
	color: #000000;
	text-decoration: none;
}

#lm li a:hover {
	color: #ffffff;
	background-image: url("../pages/images/mico/mbg_c.png");
	color: black;
}

.mbgc {
	background-image: url("../pages/images/mico/mbg_c.png") !important;
}

.mbg {
	background-image: url("../pages/images/mico/mbg.png");
}
</style>
</html>
